<extend name="Index/index"/>

<block name="main">
<!-- Page Heading -->
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">
                问题管理
            </h1>
            <ol class="breadcrumb">
                <li>
                    <i class="fa fa-dashboard"></i>  <a href="<{:U('Topic/index')}>"> 问题列表 </a>
                </li>
                <li class="active">
                    <i class="fa fa-edit"></i>  <a href="<{:U('add')}>"> 添加问题 </a>
                </li>
                <li class="active">
                    <i class=""></i> 问题管理
                </li>
            </ol>
        </div>
    </div>
<!-- /.row -->
    <div class="row">
        <table class="mt20 table table-hover">
            <tr>
                <th>问题ID</th>
                <th>发表者ID</th>
                <th>话题ID</th>
                <th>问题标题</th>
                <th>热门</th>
                <th>最新</th>
                <th>发表时间</th>
                <th>操作</th>
            </tr>
            <volist name="list" id="v">
                <tr>
                    <td><{$v.id}></td>
                    <td><{$v.uid}></td>
                    <td><{$v.tid}></td>
                    <td><{$v.title}></td>
                    <td><{$v.hot}></td>
                    <td><{$v.new}></td>
                    <td><{$v.time}></td>
                    <td class="col-md-2">
                        <a href="<{:U('del',array('id'=>$v['id']))}>" class="btn btn-danger btn-sm">删除</a>
                    </td>
                </tr>
            </volist>
        </table>       
    </div>
</block>


